Skip to content

Add is_compiled_with_cuda#18356

Merged
chengduoZH merged 3 commits intoPaddlePaddle:developfrom
chengduoZH:add_cuda_is_available_dev
Jun 28, 2019
Merged

Add is_compiled_with_cuda#18356
chengduoZH merged 3 commits intoPaddlePaddle:developfrom
chengduoZH:add_cuda_is_available_dev

Conversation

@chengduoZH
Copy link
Contributor

@chengduoZH chengduoZH commented Jun 26, 2019

Add is_compiled_with_cuda in framework.py.

chengduozh added 2 commits June 26, 2019 22:08
test=develop
@chengduoZH chengduoZH requested a review from luotao1 June 27, 2019 04:25
luotao1
luotao1 previously approved these changes Jun 27, 2019
Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

sneaxiy
sneaxiy previously approved these changes Jun 27, 2019
Copy link
Collaborator

@sneaxiy sneaxiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Examples:
.. code-block:: python

support_gpu = fluid.is_compiled_with_cuda()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要加上import?

test=develop
@chengduoZH chengduoZH dismissed stale reviews from sneaxiy and luotao1 via 92b2c1e June 27, 2019 13:02
@chengduoZH chengduoZH merged commit 871cc15 into PaddlePaddle:develop Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants